package com.yonyou.cyxdms.basedata.service.entity.sap;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 价格主数据-中央补贴-CMS009-PO
 *
 * @author lyz
 * @date 2020/11/25
 */
@Data
@TableName(value = "ti_product_price_subsidies")
public class CMS009PO {

    /** 主键 **/
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 发送方 **/
    @TableField(value = "sender")
    private String sender;

    /** 接收方 **/
    @TableField(value = "receiver")
    private String receiver;

    /** 发送时间 **/
    @TableField(value = "dtsend")
    private Date dtsend;

    /** 接口ID **/
    @TableField(value = "intfid")
    private String intfid;

    /** 消息ID **/
    @TableField(value = "msgid")
    private String msgid;

    /** 补贴类型:A=地方补贴(省) 、B=地方补贴(市)、.Z=中央补贴 D=地方补贴（不区分省、市） **/
    @TableField(value = "subsidy_type")
    private String subsidyType;

    /** 公告号 **/
    @TableField(value = "notice_no")
    private String noticeNo;

    /** 补贴金额 **/
    @TableField(value = "subsidy_amount")
    private String subsidyAmount;

    /** 省份 **/
    @TableField(value = "province")
    private String province;

    /** 城市 **/
    @TableField(value = "city")
    private String city;

    /** 币别 **/
    @TableField(value = "currency")
    private String currency;

    /** 有效起始日期 **/
    @TableField(value = "start_date")
    private Date startDate;

    /** 有效结束日期 **/
    @TableField(value = "end_date")
    private Date endDate;

    /** 预留字段1 **/
    @TableField(value = "back1")
    private String back1;

    /** 预留字段2 **/
    @TableField(value = "back2")
    private String back2;

    /** 预留字段3 **/
    @TableField(value = "back3")
    private String back3;

    /** 是否删除(0:未删除1:删除) **/
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    /** RECORD_VERSION **/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Version
    private Integer recordVersion;

    /** CREATED_AT **/
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    /** UPDATED_AT **/
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

}